<template>
  <div class="remark">
      <div class="re-title"><h3>每日一语</h3></div>
      <div class="re-warp">
          <div class="imgwrap">
              <img :src="imgsrc"/>
          </div>
          <div class="remarkdesc">
                <p class="date">{{date}}</p>
                <p class="desc">{{desc}}</p>
                <p class="auth">{{auth}}</p>
          </div>
      </div>
  </div>
</template>

<script>

export default {
    props: ['imgsrc', 'date', 'desc', 'auth']
}
</script>

<style scoped>
.remark {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 0 10px 10px 10px;
    margin-bottom: 10px;
}
.re-title {
    width: 100%;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #eee;
}
.re-title h3{
    font-size: 16px;
    display: inline-block;
    line-height: 40px;
    box-sizing: border-box;
    border-bottom: #333 solid 1px;
    font-weight: bold;
    padding: 0 10px;
}
.imgwrap {
    width: 100%;
    margin-top: 5px;
}
.imgwrap img {
    display: block;
    width: 100%;
}
.remarkdesc .desc {
    line-height: 20px;
    font-size: 14px;
    text-indent: 2em;
    color: #333;
}
.remarkdesc .auth {
    font-size: 12px;
    color: #666;
    text-align: right;
}
.remarkdesc .date {
    text-align: left;
    font-size: 14px;
    line-height: 30px;
    color: #333;
}
</style>